import 'package:flutter/material.dart';
import './pages/tabs.dart';
import './pages/login.dart';
void main() => runApp(const MyApp());

// 总文件
class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue, //主题色
      ),
      // home: tabber(),
      initialRoute: "/", //名为"/"的路由作为应用的home(首页)\
      routes: {
        "/login": (context) => login(),
        "/": (context) => tabber(), //注册首页路由
      },
    );
  }
}
